/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package decorator;

import java.awt.color.ColorSpace;
import java.awt.image.BufferedImage;
import java.awt.image.BufferedImageOp;
import java.awt.image.ColorConvertOp;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 *
 * @author Delvoux
 */
public class TonsDeCinza extends Efeito{

    public Object draw() {
        BufferedImage imagem = (BufferedImage) super.draw();
        BufferedImageOp op = new ColorConvertOp(
        ColorSpace.getInstance(ColorSpace.CS_GRAY), null);
        imagem = op.filter(imagem, null);
        return imagem;
    }

}
